package subcribe;

import redis.clients.jedis.Jedis;

/**
 * @author Veng Su 1344114844@qq.com
 * @date 2018/4/22 11:19
 */
public class Main {
    public static void main(String[] args) {
        Jedis jedis=new Jedis("127.0.0.1",6379);
        //订阅channal
        jedis.subscribe(new RedisSuncribe(),"laowang");

    }
}
